package com.liwei.enumtest.one;

public enum Status1 {
	A(111, "I'm A"), B(222, "I'm A"), C(333, "I'm A"), D(444, "I'm A"), E(555,
			"I'm A"), F(666, "I'm A");

	private int num;
	private String value;

	private Status1(int num, String value) {
		this.value = value;
		this.num = num;
	}

	public int getNum() {
		return num;
	}

	public String getValue() {
		return value;
	}

	public String getDescr() {
		switch (this) {
		case A:
			return "a";
		case B:
			return "b";
		case C:
			return "c";
		case D:
			return "d";
		case E:
			return "e";
		case F:
			return "f";
		default:
			return "";
		}
	}
}